package com.dollarxy.dlmall.product.feign;

import com.dollarxy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description:
 * @Created: with IntelliJ IDEA.
 * @author: dennis
 * @createTime: 2022-06-06 15:50
 *
 *
 * 1、R设计的时候可以加上泛型*
 * 2、直接返回我们想要的结果*
 * 3、自己封装解析结果
 **/

@FeignClient("dlmall-ware")
public interface WareFeignService {

    @PostMapping(value = "/ware/waresku/hasStock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);

}
